﻿using SCG.SolarVengeanceEngine;
using SCG.TurboSprite;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace SCG.SolarVengeance
{
    public class UDOSprite : BitmapSprite
    {
        //constructor
        public UDOSprite(UDO udo, Bitmap bmp)
            : base(bmp)
        {
            UDO = udo;
        }

        //The UDO
        public UDO UDO { get; set; }

        //draw if visible
        public override void Render(Graphics g)
        {
            if (!UDO.VisibleToCurrentPlayer)
                return;
            base.Render(g);
        }
    }
}
